package org.thukari.entity;

import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

@Getter
@Setter
public class DealCountData {
    private String name;
    private int count;
    private double money;
    private Map<String,DealCountData> dataMap;

    public DealCountData(String name,int count,double money){
        this.name = name;
        this.count = count;
        this.money = money;
        this.dataMap = new HashMap<>();
    }


    public void countUp(){
        this.count ++;
    }

    public void moneyUp(double money){
        this.money += money;
    }

}
